package com.ship.common.security.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Configuration;

/**
 * <b>FastJsonConfig</b>
 *
 * @description: FastJsonConfig <br>
 * @date: 2024/7/8 15:03 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */

@Configuration
public class FastJsonSafeMode implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.setProperty("fastjson2.parser.safeMode", "true");
    }
}
